package framework.log;


import framework.common.zanetwork.UeHttpUrl;

/**
 * 只有在测试环境才会打log日志
 */
public class LogUtil {

	/**
	 * verbose
	 * @param from
	 * @param tag
	 * @param msg
	 */
	public static void v(String from,String tag, String msg) {
		if (UeHttpUrl.MODEL.equals("DEV")) {
			android.util.Log.v(from+">>"+tag, msg);
		}
	}

	/**
	 * verbose
	 * @param from
	 * @param tag
	 * @param msg
	 * @param t
	 */
	public static void v(String from,String tag, String msg, Throwable t) {
		if (UeHttpUrl.MODEL.equals("DEV")) {
			android.util.Log.v(from+">>"+tag, msg, t);
		}
	}
	
	/**
	 * debug
	 * @param from
	 * @param tag
	 * @param msg
	 */
	public static void d(String from,String tag, String msg) {
		if (UeHttpUrl.MODEL.equals("DEV")) {
			android.util.Log.d(from+">>"+tag, msg);
		}
	}
	
	/**
	 * debug
	 * @param from
	 * @param tag
	 * @param msg
	 * @param t
	 */
	public static void d(String from,String tag, String msg, Throwable t) {
		if (UeHttpUrl.MODEL.equals("DEV")) {
			android.util.Log.d(from+">>"+tag, msg, t);
		}
	}
	
	/**
	 * info
	 * @param from
	 * @param tag
	 * @param msg
	 */
	public static void i(String from,String tag, String msg) {
		if (UeHttpUrl.MODEL.equals("DEV")) {
			android.util.Log.i(from+">>"+tag, msg);
		}
	}
	
	/**
	 * info
	 * @param from
	 * @param tag
	 * @param msg
	 * @param t
	 */
	public static void i(String from,String tag, String msg, Throwable t) {
		if (UeHttpUrl.MODEL.equals("DEV")) {
			android.util.Log.i(from+">>"+tag, msg, t);
		}
	}
	
	/**
	 * warn
	 * @param from
	 * @param tag
	 * @param msg
	 */
	public static void w(String from,String tag, String msg) {
		if (UeHttpUrl.MODEL.equals("DEV")) {
			android.util.Log.w(from+">>"+tag, msg);
		}
	}
	
	/**
	 * warn
	 * @param from
	 * @param tag
	 * @param msg
	 * @param t
	 */
	public static void w(String from,String tag, String msg, Throwable t) {
		if (UeHttpUrl.MODEL.equals("DEV")) {
			android.util.Log.w(from+">>"+tag, msg, t);
		}
	}
	
	/**
	 * error
	 * @param from
	 * @param tag
	 * @param msg
	 */
	public static void e(String from,String tag, String msg) {
		if (UeHttpUrl.MODEL.equals("DEV")) {
			android.util.Log.e(from+">>"+tag, msg);
		}
	}
	
	/**
	 * error
	 * @param from
	 * @param tag
	 * @param msg
	 * @param t
	 */
	public static void e(String from,String tag, String msg, Throwable t) {
		if (UeHttpUrl.MODEL.equals("DEV")) {
			android.util.Log.e(from+">>"+tag, msg, t);
		}
	}
}
